package com.eeepay.eeepay_v2._tab;

import android.support.v4.app.Fragment;

import com.eeepay.eeepay_v2.R;
import com.eeepay.eeepay_v2.api.TerminalNoTypeDef;

import java.util.ArrayList;
import java.util.List;

/**
 * 描述：通过本项目的例子测试一下
 * 作者：zhuangzeqin
 * 时间: 2017/8/30-14:06
 * 邮箱：zzq@eeepay.cn
 */
public class TestApplyforDevicesActivity extends BaseTabLayoutActivity {
    @Override
    protected int getLayoutId() {
        return R.layout.activity_applyfor_devices;
    }

    @Override
    protected int getTabLayoutID() {
        return R.id.tab_layout;
    }

    @Override
    protected int getViewPagerID() {
        return R.id.viewpager;
    }

    @Override
    protected String[] getTitleArray() {
        String[] titles = new String[]{"待处理", "已处理", "全部"};
        return titles;
    }

    @Override
    protected List<Fragment> getFragmentTabList() {
        List<Fragment> mFragmentTab = new ArrayList<>();
        mFragmentTab.add(TestApplyforDevicesFragment.getInstance(TerminalNoTypeDef.KEY_DCL));//待处理
        mFragmentTab.add(TestApplyforDevicesFragment.getInstance(TerminalNoTypeDef.KEY_YCL));//已处理
        mFragmentTab.add(TestApplyforDevicesFragment.getInstance(TerminalNoTypeDef.KEY_ALL));//全部
        return mFragmentTab;
    }
}
